let newsmodel = require('../services/newsmodel')

module.exports = {
    renIndex: async ctx => {
        await ctx.render('index.html')

    },
    renIndexs: async ctx => {
        await ctx.render('newindex.html')
    },
    getdata: ctx => {
        let data = newsmodel.getdata()
        ctx.body = data
    }
}